var tim;
var hintdiv;
function linkOver(e) {
  var t=e;
  function p() {
    chrome.extension.connect().postMessage([t.target.href,t.clientX+document.body.scrollLeft,t.clientY+document.body.scrollTop,document.location.href]);
    t=null;
  }
  if (t.target.href) {
      window.clearTimeout(tim);
      tim =setTimeout(p,666);
  }
}
function init() {
  hintdiv=document.createElement("div");
  hintdiv.setAttribute("style","background: #F0F0F0;position:absolute;left: 10px; top: -100px");
  hintdiv.innerHTML='123';
  window.addEventListener('mouseover',linkOver);
  chrome.extension.onRequest.addListener(function(p) {
    hintdiv.innerHTML='<div>'+p[0]+'</div>';
    hintdiv.style.top=p[2]+'px';
    hintdiv.style.left=p[1]+'px';
    document.body.appendChild(hintdiv);
  });
}
  //Execute only when page loads
  var t="load";
  window.addEventListener(t,init);
  //Memory l....
  t=null;  